package com.zking.service.impl;

import com.zking.dao.domain.Department;
import com.zking.dao.mapper.DepartmentMapper;
import com.zking.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> queryDepartments() {
        return departmentMapper.queryDepartments();
    }

    @Override
    public Department queryDepartment(int id) {
        return departmentMapper.queryDepartment(id);
    }
}
